package edu.spec.xhd.broadcast;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import edu.spec.xhd.R;

public class ActivityCustomBroadcast extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_custom_broadcast);
        Button btn = findViewById(R.id.btn_send_custom_broadcast);
        btn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent("edu.spec.MY_BROADCAST");
                sendOrderedBroadcast(intent, null);
            }
        });
    }
}
